[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
disable() Disable Interrupts (Macro)
#include <dos.h>
void disable(void);
disable() provides control over hardware interrupts by disabling all
but the NMI interrupt.
Returns: Nothing
Notes: disable() is a macro.
Portability: 8086-Family of processors only.
-------------------------------- Example ---------------------------------
The following statements disable and then re-enable the interrupts.
#include <dos.h> /* for disable and enable */
main()
{
disable();
/* execute operations which can't be interrupted */
enable();
}
See Also:
enable()
geninterrupt()
getvect()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson